package com.yan_jiu_sheng.JavaAdvance.c_multiThread;

/**
 * @author yulongTian
 * @create 2024-05-26 17:24
 */
public class Test01 {
    public static void main(String[] args) {
        BaoZiPu baoZiPu = new BaoZiPu();
        Product product = new Product(baoZiPu);
        Consumer consumer = new Consumer(baoZiPu);
        Thread t1 = new Thread(product);
        Thread t2 = new Thread(consumer);


        t1.start();
        t2.start();

    }
}
